package com.ronglian.ucdisk.share;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="share_node_entity")
public class ShareNodeEntity {
	
	@Id private String id;
	///public String shareEventId;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn (name="share_event_id",referencedColumnName="id")
	private ShareEvent event; 
	private String nodeId; 
	
	private Date lastUpdateTime = new Date();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public ShareEvent getEvent() {
		return event;
	}
	public void setEvent(ShareEvent event) {
		this.event = event;
	}
	public String getNodeId() {
		return nodeId;
	}
	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
}
